package com.syni.mdd.sjb.community.base.controller.protect;


import com.syni.mdd.sjb.community.base.annotion.AdminAuthVerification;
import com.syni.mdd.sjb.community.base.entity.vo.rq.GetCorpCompanyUserVo;
import com.syni.mdd.sjb.community.base.service.SjbQywxCompanyUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * <p>
 * 企业微信员工信息表 前端控制器
 * </p>
 *
 * @author lcc
 * @since 2021-02-25
 */
@RestController
@RequestMapping("/sjbQywxCompanyUser")
public class SjbQywxCompanyUserController {

    @Autowired
    SjbQywxCompanyUserService sjbQywxCompanyUserService;

    @AdminAuthVerification
    @PostMapping("/getCorpCompanyUser")
    public Map<String, Object> getCorpCompanyUser(@RequestBody GetCorpCompanyUserVo  corpCompanyUserVo) {
        return sjbQywxCompanyUserService.getCorpCompanyUser(corpCompanyUserVo);
    }
}
